package com.suncreate.radarscan.model;

import java.util.ArrayList;
import java.util.List;

//雷达信息类
public class Radar {
	private int radarId;
	private String radarNo;//雷达序列号
	
	private double radarRange;//雷达威力范围(弧度)
	private double radarDistance;//作用距离（米）
	private double radarHeight;//架设高度（米）
	private double radarPitch;//俯仰角（与水平面的夹角）
	private double radarSlope;//倾斜角度（与X轴的夹角）
	private double xAxe;//x坐标（笛卡尔坐标系）
	private double yAxe;//y坐标（笛卡尔坐标系）

	private List<Double> detectLines;//检测线，距离（米）
	private List<Polygon> detectAreas;//检测区域,场景坐标表示
	public String getRadarNo() {
		return radarNo;
	}
	public void setRadarNo(String radarNo) {
		this.radarNo = radarNo;
	}
	public double getRadarRange() {
		return radarRange;
	}
	public void setRadarRange(double radarRange) {
		this.radarRange = radarRange;
	}
	public double getRadarDistance() {
		return radarDistance;
	}
	public void setRadarDistance(double radarDistance) {
		this.radarDistance = radarDistance;
	}
	public double getRadarHeight() {
		return radarHeight;
	}
	public void setRadarHeight(double radarHeight) {
		this.radarHeight = radarHeight;
	}
	public double getRadarPitch() {
		return radarPitch;
	}
	public void setRadarPitch(double radarPitch) {
		this.radarPitch = radarPitch;
	}
	public double getRadarSlope() {
		return radarSlope;
	}
	public void setRadarSlope(double radarSlope) {
		this.radarSlope = radarSlope;
	}
	public double getxAxe() {
		return xAxe;
	}
	public void setxAxe(double xAxe) {
		this.xAxe = xAxe;
	}
	public double getyAxe() {
		return yAxe;
	}
	public void setyAxe(double yAxe) {
		this.yAxe = yAxe;
	}
	public List<Double> getDetectLines() {
		return detectLines;
	}
	public void setDetectLines(List<Double> detectLines) {
		this.detectLines = detectLines;
	}
	public List<Polygon> getDetectAreas() {
		return detectAreas;
	}
	public void setDetectAreas(List<Polygon> detectAreas) {
		this.detectAreas = detectAreas;
	}
	public int getRadarId() {
		return radarId;
	}
	public void setRadarId(int radarId) {
		this.radarId = radarId;
	}
	@Override
	public String toString() {
		return "Radar [radarId=" + radarId + ", radarNo=" + radarNo + ", radarRange=" + radarRange + ", radarDistance="
				+ radarDistance + ", radarHeight=" + radarHeight + ", radarPitch=" + radarPitch + ", radarSlope="
				+ radarSlope + ", xAxe=" + xAxe + ", yAxe=" + yAxe + ", detectLines=" + detectLines + ", detectAreas="
				+ detectAreas + "]";
	}
	
	
	/*
	  C#写法
    public class RadarObject
    {
        public string Id;//雷达编号
        public double Direction = 1.570796326794897d;//雷达方位角（弧度）
        public double Range = 0.3490658503988659d;//雷达威力夹角(弧度)
        public double Distance = 200;//作用距离（米）
        public double Height = 2;//架设高度（米）
        public double Depression = 0;//俯角（弧度）
        public double XAxe=0;//x坐标（笛卡尔坐标系）
        public double YAxe=0;//y坐标（笛卡尔坐标系）
        public List<double> DetectLines = new List<double>();//检测线，距离（米）
        public List<Polygon> DetectAreas = new List<Polygon>();//检测区域,场景坐标表示
        public RadarObject()
        {

        }

        public void AddDetectArea(params PointD[] points)
        {
            if (points==null||points.Length==0||points.Length<3)
            {
                return;
            }
            Polygon p = new Polygon();
            p.Points.AddRange(points);
            DetectAreas.Add(p);
        }
    }
	 */
}
